using System;
namespace IcsSEMCtrl.Event.Device
{
	[Serializable]
	public abstract class DeviceEvent : ECPEvent
	{
		public static readonly string SUBJECT = "device";
		protected string deviceId = "";
		protected string deviceType = "";
		public string DeviceID
		{
			get
			{
				return this.deviceId;
			}
			set
			{
				this.deviceId = value;
			}
		}
		public string DeviceType
		{
			get
			{
				return this.deviceType;
			}
			set
			{
				this.deviceType = value;
			}
		}
		public DeviceEvent(string deviceId, string deviceType)
		{
			this.DeviceID = deviceId;
			this.DeviceType = deviceType;
		}
		protected string CreateSubject(string id)
		{
			return DeviceEvent.FormSubject(id);
		}
		public static string FormSubject(string id)
		{
			return DeviceEvent.SUBJECT + "." + id;
		}
	}
}
